<%@page import="helpers.UrlHelper"%>
<%@page import="models.Domain"%>
<%@page import="models.RecentSite"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="helpers.HeaderHelper"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	String name = (String) request.getAttribute("name");
	
%>

<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>

		<!-- 2. content -->
		<div id="content">
			<!-- 3. whois-info -->
			<div class="site-header o-info">
				<h2>Redirect for <a href="http://<%=name %>"><%=name %></a></h2>
				<div>
					<strong>Find more infomation about <%=name %> on :</strong>
					<ul>
						<li>
							Epufloor - <a target="_blank" href="http://www.epufloor.net/info/<%=name%>"><%=name %></a>
						</li>
						<li>
							WhoisData - <a target="_blank" href="http://www.whoisdata.us/whois/<%=name%>"><%=name %></a>
						</li>
						<li>
							Dns Lookup - <a target="_blank" href="http://www.nslookup.us/dns/<%=name%>"><%=name%></a>
						</li>
						<li>
							DnsData - <a target="_blank" href="http://dns.violet.edu.vn/dns/<%=name%>"><%=name %></a>
						</li>
						<li>
							Speed Test Site - <a target="_blank" href="http://www.speedtestlab.com/check/<%=name%>"><%=name%></a>
						</li>
						<li>
							Showsiteinfo - <a target="_blank" href="http://www.showsiteinfo.net/sites/<%=name%>"><%=name %></a>
						</li>
						<li>
							Web20vn - <a target="_blank" href="http://web20vn.com/domain/<%=name%>"><%=name%></a>
						</li>
						<li>
							DomainsGeeks - <a target="_blank" href="http://domainsgeeks.appspot.com/s/<%=name%>"><%=name %></a>
						</li>
						<li>
							Show domain - <a target="_blank" href="http://www.showdomain.net/d/<%=name%>"><%=name %></a>
						</li>
						<li>
							CheckSiteSafe - <a target="_blank" href="http://www.checksitesafe.com/site/<%=name%>"><%=name %></a>
						</li>
						<li>
							Look Good Site - <a target="_blank" href="http://www.lookgoodsite.com/<%=name%>"><%=name %></a>
						</li>
						<li style="display: none;">
							Trace IP - <a target="_blank" href="http://www.traceip.us/domain/<%=name%>"><%=name %></a>
						</li>
						<% if (UrlHelper.checkSpecialDomain(name, "us")) { %>
						<li>
							WebsiteUs - <a target="_blank" href="http://www.websiteus.org/s/<%=name%>"><%=name %></a>
						</li>
						<% } %>
						<% if (UrlHelper.checkSpecialDomain(name, "jp")) { %>
						<li>
							Jasite - <a target="_blank" href="http://www.jasite.net/s/<%=name%>"><%=name %></a>
						</li>
						<% } %>
						
						<% if (UrlHelper.checkSpecialDomain(name, "es")) { %>
						<li>
							Eswebsite - <a target="_blank" href="http://www.eswebsite.org/s/<%=name%>"><%=name %></a>
						</li>
						<% } %>
						
						<% if (UrlHelper.checkSpecialDomain(name, "ca")) { %>
						<li>
							Canadasite - <a target="_blank" href="http://www.canadasite.org/s/<%=name%>"><%=name %></a>
						</li>
						<li>
							Topsitescanada - <a target="_blank" href="http://www.topsitescanada.com/s/<%=name%>"><%=name %></a>
						</li>
						<% } %>
					</ul>
				</div>
			</div>
			<!-- 3. end whois-info -->
		</div>
		<!-- 2. end content -->
		
		<!-- 2. side -->
		<div id="side">
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site Update</h3>
				<div class="lst">
					<ul>
					<%
						ArrayList<Domain> recentSiteUpdate = RecentSite.getRecentSiteUpdate();
						if (recentSiteUpdate != null) {
							for (int i = 0; i < recentSiteUpdate.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteUpdate.get(i).getName()%>"><%=recentSiteUpdate.get(i).getName()%></a></li>
					<%		}
						} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site View</h3>
				<div class="lst">
					<ul>
						<%
						ArrayList<String> recentSiteView = RecentSite.getRecentSiteView();
						if (recentSiteUpdate != null) {
							for (int i = 0; i < recentSiteView.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteView.get(i)%>"><%=recentSiteView.get(i)%></a></li>
					<%		}
						} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
		</div>
		<!-- 2. end side -->
		
		<div class="clear"></div>				
<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>
